[Amazon Connect]コンタクトフロー内のブロック数を確認する

[Amazon Connect]コンタクトフロー内のブロック数を確認する

Clock Icon2022.11.22

この記事は公開されてから1年以上経過しています。情報が古い可能性がありますので、ご注意ください。

はじめに

Amazon Connectのコンタクトフローにはエクスポート、インポートする機能があります。(ブログ執筆時点ではベータ版の機能)

開発環境でテストしたコンタクトフローをエクスポートし、本番環境へインポートする際にとても便利な機能ですが、エクスポートするには以下の要件を満たす必要があります。

フローのブロック数が 100 未満である。
フローの合計サイズが 1 MB 未満でである。

これらの要件を満たすために、大きなフローは小さいフローに分割することをお勧めします。 とユーザーガイドにも書かれている通り、分割することが望ましいですが、分割できないコンタクトフローでブロック数を確認する方法がありません。
今回はブロック数を確認する方法をまとめてみました。

コンタクトフローのエクスポート

まずは、コンタクトフローをエクスポートします。コンタクトフローは、Amazon Connect UIでのみエクスポートできます。 保存 から フローのエクスポート(ベータ) をクリックし、任意の名前でダウンロードします。ダウンロードしたコンタクトフロー(.json)はこんな感じです。プロンプトの再生ブロックを90、切断ブロックを10配置した合計100ブロックの配置です。

100ブロックのコンタクトフロー(クリックで展開されます)
{
    "modules": [
        {
            "id": "908b553e-9be6-4db4-bc57-2edb4d2ed220",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a0e1dda0-cd99-4860-bba5-ed4abe0a3409"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 182,
                    "y": 17
                },
                "useDynamic": false
            }
        },
        {
            "id": "a0e1dda0-cd99-4860-bba5-ed4abe0a3409",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "6ffd4f53-a754-413e-b004-e12adb762402"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 424,
                    "y": 18
                },
                "useDynamic": false
            }
        },
        {
            "id": "6ffd4f53-a754-413e-b004-e12adb762402",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "3db22b5a-4786-43a8-991d-02c27b5f645b"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 663,
                    "y": 16
                },
                "useDynamic": false
            }
        },
        {
            "id": "3db22b5a-4786-43a8-991d-02c27b5f645b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "26e4a1ff-f4d3-451a-aee8-4e0c57776958"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 904,
                    "y": 17
                },
                "useDynamic": false
            }
        },
        {
            "id": "26e4a1ff-f4d3-451a-aee8-4e0c57776958",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "28753d7f-4357-4e1b-b56b-0717fa299063"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1142,
                    "y": 16
                },
                "useDynamic": false
            }
        },
        {
            "id": "28753d7f-4357-4e1b-b56b-0717fa299063",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b7debf9d-c70a-42b3-8602-49d8f815feba"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1383,
                    "y": 16
                },
                "useDynamic": false
            }
        },
        {
            "id": "b7debf9d-c70a-42b3-8602-49d8f815feba",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "6fa8fc96-fc20-490c-b603-1774010f5663"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1623,
                    "y": 17
                },
                "useDynamic": false
            }
        },
        {
            "id": "6fa8fc96-fc20-490c-b603-1774010f5663",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "08ac0bee-d19f-4ea4-aff8-326958e20e4c"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1863,
                    "y": 16
                },
                "useDynamic": false
            }
        },
        {
            "id": "08ac0bee-d19f-4ea4-aff8-326958e20e4c",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "ff51935f-0e5e-48d5-b762-23ba58f2d785"
                },
                {
                    "condition": "Error",
                    "transition": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2104,
                    "y": 16
                },
                "useDynamic": false
            }
        },
        {
            "id": "9d8b30a4-6521-4c3a-a49a-dbf081d2dd66",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2379,
                    "y": 215
                }
            }
        },
        {
            "id": "4d805751-7f5d-4b41-807b-8d511e55ee42",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "39d8dbd7-27d4-4979-b7d7-bf6329a1c759"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 660,
                    "y": 338
                },
                "useDynamic": false
            }
        },
        {
            "id": "39d8dbd7-27d4-4979-b7d7-bf6329a1c759",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "87678791-b77b-4839-a9db-72e9722d602f"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 901,
                    "y": 339
                },
                "useDynamic": false
            }
        },
        {
            "id": "87678791-b77b-4839-a9db-72e9722d602f",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "1589c721-bc20-4a9e-a057-af75a83fbb61"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1139,
                    "y": 338
                },
                "useDynamic": false
            }
        },
        {
            "id": "1589c721-bc20-4a9e-a057-af75a83fbb61",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "25d0667e-baec-4b40-a045-12219d460177"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1380,
                    "y": 338
                },
                "useDynamic": false
            }
        },
        {
            "id": "25d0667e-baec-4b40-a045-12219d460177",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "4b729ec1-fe75-4187-8c7f-50e02c7223fb"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1620,
                    "y": 339
                },
                "useDynamic": false
            }
        },
        {
            "id": "4b729ec1-fe75-4187-8c7f-50e02c7223fb",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "1fcb32c2-46a9-4f98-960d-83a8ec5eb35f"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1860,
                    "y": 338
                },
                "useDynamic": false
            }
        },
        {
            "id": "1fcb32c2-46a9-4f98-960d-83a8ec5eb35f",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "5941069c-f09e-4b46-ae83-24fad008fab3"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2101,
                    "y": 338
                },
                "useDynamic": false
            }
        },
        {
            "id": "b0eceb75-6a56-4422-b553-b76cb56b995d",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "4d805751-7f5d-4b41-807b-8d511e55ee42"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 421,
                    "y": 340
                },
                "useDynamic": false
            }
        },
        {
            "id": "7102c6a7-aa11-466a-a4f2-edc88f681bb6",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2376,
                    "y": 537
                }
            }
        },
        {
            "id": "ff51935f-0e5e-48d5-b762-23ba58f2d785",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b0eceb75-6a56-4422-b553-b76cb56b995d"
                },
                {
                    "condition": "Error",
                    "transition": "7102c6a7-aa11-466a-a4f2-edc88f681bb6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 179,
                    "y": 339
                },
                "useDynamic": false
            }
        },
        {
            "id": "087ef1aa-6523-4063-ad09-1d82d5e7628f",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "4c2e8392-0f7c-406b-bf15-ee1312cbabbd"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 658,
                    "y": 659
                },
                "useDynamic": false
            }
        },
        {
            "id": "4c2e8392-0f7c-406b-bf15-ee1312cbabbd",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "700ef214-74bc-4558-ba04-0a91c8d8c0c7"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 899,
                    "y": 660
                },
                "useDynamic": false
            }
        },
        {
            "id": "700ef214-74bc-4558-ba04-0a91c8d8c0c7",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f66930d0-e4b7-488f-bb20-ae47bb6e2f14"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1137,
                    "y": 659
                },
                "useDynamic": false
            }
        },
        {
            "id": "f66930d0-e4b7-488f-bb20-ae47bb6e2f14",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2b5e6183-7d6b-46fe-9ced-dd3a8f0bb089"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1378,
                    "y": 659
                },
                "useDynamic": false
            }
        },
        {
            "id": "2b5e6183-7d6b-46fe-9ced-dd3a8f0bb089",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "e2c4ffc2-67fd-482c-88a2-292792c34db2"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1618,
                    "y": 660
                },
                "useDynamic": false
            }
        },
        {
            "id": "e2c4ffc2-67fd-482c-88a2-292792c34db2",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "fbcafba8-21d1-43dd-a8f5-3a84d972e393"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1858,
                    "y": 659
                },
                "useDynamic": false
            }
        },
        {
            "id": "27467535-0303-489d-982a-4a7aa01828dd",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "087ef1aa-6523-4063-ad09-1d82d5e7628f"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 419,
                    "y": 661
                },
                "useDynamic": false
            }
        },
        {
            "id": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2374,
                    "y": 858
                }
            }
        },
        {
            "id": "5941069c-f09e-4b46-ae83-24fad008fab3",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "27467535-0303-489d-982a-4a7aa01828dd"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 177,
                    "y": 660
                },
                "useDynamic": false
            }
        },
        {
            "id": "a73fe40a-3d52-4906-b322-f85cd0b16ecd",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "34eb4238-0b8d-4964-8231-13dd9b12d671"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 657,
                    "y": 979
                },
                "useDynamic": false
            }
        },
        {
            "id": "34eb4238-0b8d-4964-8231-13dd9b12d671",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "e64e1686-9ca9-46d4-822f-d138e4e60ceb"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 898,
                    "y": 980
                },
                "useDynamic": false
            }
        },
        {
            "id": "e64e1686-9ca9-46d4-822f-d138e4e60ceb",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "194a1c44-a94d-4bac-9ef4-a6308f1d53a5"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1136,
                    "y": 979
                },
                "useDynamic": false
            }
        },
        {
            "id": "194a1c44-a94d-4bac-9ef4-a6308f1d53a5",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "3fcda060-f4f3-44fb-9f9b-97ce96000fc8"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1377,
                    "y": 979
                },
                "useDynamic": false
            }
        },
        {
            "id": "3fcda060-f4f3-44fb-9f9b-97ce96000fc8",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "6e022714-f78e-4a9b-ac14-900d6e99dbc3"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1617,
                    "y": 980
                },
                "useDynamic": false
            }
        },
        {
            "id": "6e022714-f78e-4a9b-ac14-900d6e99dbc3",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "0b4cfbca-6540-4e46-94df-0a7f66748bb2"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1857,
                    "y": 979
                },
                "useDynamic": false
            }
        },
        {
            "id": "0b4cfbca-6540-4e46-94df-0a7f66748bb2",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2e331582-0788-4634-8076-952702e3331a"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2098,
                    "y": 979
                },
                "useDynamic": false
            }
        },
        {
            "id": "d783060f-8876-452f-9fe0-587cb4eefd13",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a599781c-6176-40fe-9df9-534f5541b47e"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 659,
                    "y": 1298
                },
                "useDynamic": false
            }
        },
        {
            "id": "a599781c-6176-40fe-9df9-534f5541b47e",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "cfb3e44e-7ddd-4373-8deb-3d0b48b4942b"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 900,
                    "y": 1299
                },
                "useDynamic": false
            }
        },
        {
            "id": "cfb3e44e-7ddd-4373-8deb-3d0b48b4942b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "28aabcf9-280d-49de-be4e-b7c1c0da67b1"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1138,
                    "y": 1298
                },
                "useDynamic": false
            }
        },
        {
            "id": "28aabcf9-280d-49de-be4e-b7c1c0da67b1",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "d3bd0eda-50a3-46f1-b21e-f23876d42275"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1379,
                    "y": 1298
                },
                "useDynamic": false
            }
        },
        {
            "id": "d3bd0eda-50a3-46f1-b21e-f23876d42275",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b98c7aac-a0cf-4c43-b631-51befed6d140"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1619,
                    "y": 1299
                },
                "useDynamic": false
            }
        },
        {
            "id": "b98c7aac-a0cf-4c43-b631-51befed6d140",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "8b0e265b-b8dc-4753-83fa-10a016c60133"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1859,
                    "y": 1298
                },
                "useDynamic": false
            }
        },
        {
            "id": "8b0e265b-b8dc-4753-83fa-10a016c60133",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "38faec07-4567-4234-b8a3-088ad8d05cae"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2100,
                    "y": 1298
                },
                "useDynamic": false
            }
        },
        {
            "id": "890b7795-a6dc-4077-8c3d-a6924ae02f21",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "d783060f-8876-452f-9fe0-587cb4eefd13"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 420,
                    "y": 1300
                },
                "useDynamic": false
            }
        },
        {
            "id": "76575ff2-74ad-487a-8dd2-f60138d7bcb7",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2375,
                    "y": 1497
                }
            }
        },
        {
            "id": "2e331582-0788-4634-8076-952702e3331a",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "890b7795-a6dc-4077-8c3d-a6924ae02f21"
                },
                {
                    "condition": "Error",
                    "transition": "76575ff2-74ad-487a-8dd2-f60138d7bcb7"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 178,
                    "y": 1299
                },
                "useDynamic": false
            }
        },
        {
            "id": "2bfb8f9d-c8c6-442d-8537-59ca718df970",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "402aa93e-0c03-4530-9285-947acde44143"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 660,
                    "y": 1617
                },
                "useDynamic": false
            }
        },
        {
            "id": "402aa93e-0c03-4530-9285-947acde44143",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "25b9dc20-6fa6-42d1-988f-0bd2bc79ab52"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 901,
                    "y": 1618
                },
                "useDynamic": false
            }
        },
        {
            "id": "25b9dc20-6fa6-42d1-988f-0bd2bc79ab52",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "97dab5cf-56d2-4eb3-ad43-4bd8e7659c1a"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1139,
                    "y": 1617
                },
                "useDynamic": false
            }
        },
        {
            "id": "97dab5cf-56d2-4eb3-ad43-4bd8e7659c1a",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f7e039f9-4404-436b-bdd3-4cfb3d530335"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1380,
                    "y": 1617
                },
                "useDynamic": false
            }
        },
        {
            "id": "f7e039f9-4404-436b-bdd3-4cfb3d530335",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f4127e8f-fe88-4b5a-9060-036f1e265513"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1620,
                    "y": 1618
                },
                "useDynamic": false
            }
        },
        {
            "id": "f4127e8f-fe88-4b5a-9060-036f1e265513",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "c339c1e3-80a2-4db3-b054-55454eff6b55"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1860,
                    "y": 1617
                },
                "useDynamic": false
            }
        },
        {
            "id": "c339c1e3-80a2-4db3-b054-55454eff6b55",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "d2ed5d4e-ceb0-4477-983e-bda6c7fc4633"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2101,
                    "y": 1617
                },
                "useDynamic": false
            }
        },
        {
            "id": "10760d27-2528-48e6-9f8f-f6c3ff0d7817",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2bfb8f9d-c8c6-442d-8537-59ca718df970"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 421,
                    "y": 1619
                },
                "useDynamic": false
            }
        },
        {
            "id": "6d4cb0b0-38d0-4328-a77c-628eb77d344d",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2376,
                    "y": 1816
                }
            }
        },
        {
            "id": "38faec07-4567-4234-b8a3-088ad8d05cae",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "10760d27-2528-48e6-9f8f-f6c3ff0d7817"
                },
                {
                    "condition": "Error",
                    "transition": "6d4cb0b0-38d0-4328-a77c-628eb77d344d"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 179,
                    "y": 1618
                },
                "useDynamic": false
            }
        },
        {
            "id": "fd1d396c-119a-46d3-80f2-046a7fde5ccc",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f8394121-2b48-4e21-8c74-bcdfb69ab48b"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 661,
                    "y": 1939
                },
                "useDynamic": false
            }
        },
        {
            "id": "f8394121-2b48-4e21-8c74-bcdfb69ab48b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a450789f-8ea4-4374-b0f5-74d660fe560b"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 902,
                    "y": 1940
                },
                "useDynamic": false
            }
        },
        {
            "id": "a450789f-8ea4-4374-b0f5-74d660fe560b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "9a70856f-2bde-43d4-95af-8351b38bc783"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1140,
                    "y": 1939
                },
                "useDynamic": false
            }
        },
        {
            "id": "9a70856f-2bde-43d4-95af-8351b38bc783",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2a2865e9-f437-4cfd-98aa-0d12699d70fc"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1381,
                    "y": 1939
                },
                "useDynamic": false
            }
        },
        {
            "id": "2a2865e9-f437-4cfd-98aa-0d12699d70fc",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "608b1863-dccc-4151-8b30-994df876046a"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1621,
                    "y": 1940
                },
                "useDynamic": false
            }
        },
        {
            "id": "608b1863-dccc-4151-8b30-994df876046a",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b159bfe1-9752-42d2-aedd-467451d2dd9b"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1861,
                    "y": 1939
                },
                "useDynamic": false
            }
        },
        {
            "id": "b159bfe1-9752-42d2-aedd-467451d2dd9b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "7912da39-6b8d-41c7-8717-60f504b6f503"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2102,
                    "y": 1939
                },
                "useDynamic": false
            }
        },
        {
            "id": "cf36ff88-9855-4fb4-8649-a88473b6d180",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "fd1d396c-119a-46d3-80f2-046a7fde5ccc"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 422,
                    "y": 1941
                },
                "useDynamic": false
            }
        },
        {
            "id": "8879bc7b-4984-45f9-8846-9dd43c5651b3",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2377,
                    "y": 2138
                }
            }
        },
        {
            "id": "d2ed5d4e-ceb0-4477-983e-bda6c7fc4633",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "cf36ff88-9855-4fb4-8649-a88473b6d180"
                },
                {
                    "condition": "Error",
                    "transition": "8879bc7b-4984-45f9-8846-9dd43c5651b3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 180,
                    "y": 1940
                },
                "useDynamic": false
            }
        },
        {
            "id": "bc335559-f624-4b7a-80e6-3bd33fbb7658",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "6589d3c1-484f-4be3-9362-6e265cc1b4ec"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 660,
                    "y": 2257
                },
                "useDynamic": false
            }
        },
        {
            "id": "6589d3c1-484f-4be3-9362-6e265cc1b4ec",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "06c63774-0b88-423c-9ac0-77cbbd13d893"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 901,
                    "y": 2258
                },
                "useDynamic": false
            }
        },
        {
            "id": "06c63774-0b88-423c-9ac0-77cbbd13d893",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "0474d7aa-a182-4a5b-ba52-fc9626c18aa6"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1139,
                    "y": 2257
                },
                "useDynamic": false
            }
        },
        {
            "id": "0474d7aa-a182-4a5b-ba52-fc9626c18aa6",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b0fdf43e-7ed7-4a51-99ae-39b49a74c775"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1380,
                    "y": 2257
                },
                "useDynamic": false
            }
        },
        {
            "id": "b0fdf43e-7ed7-4a51-99ae-39b49a74c775",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "48cd6c8b-c7d6-4c86-b592-508cd5792d8d"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1620,
                    "y": 2258
                },
                "useDynamic": false
            }
        },
        {
            "id": "48cd6c8b-c7d6-4c86-b592-508cd5792d8d",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "efa2ce88-1266-48b6-8d5c-313983f23f4a"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1860,
                    "y": 2257
                },
                "useDynamic": false
            }
        },
        {
            "id": "efa2ce88-1266-48b6-8d5c-313983f23f4a",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "680ac357-74e7-4a0b-b9ad-1e87d6e25386"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2101,
                    "y": 2257
                },
                "useDynamic": false
            }
        },
        {
            "id": "2ecb6de1-4030-443e-845e-77d137f90017",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "bc335559-f624-4b7a-80e6-3bd33fbb7658"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 421,
                    "y": 2259
                },
                "useDynamic": false
            }
        },
        {
            "id": "3812349d-f003-4248-b26c-2b41f4fae9aa",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2376,
                    "y": 2456
                }
            }
        },
        {
            "id": "7912da39-6b8d-41c7-8717-60f504b6f503",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2ecb6de1-4030-443e-845e-77d137f90017"
                },
                {
                    "condition": "Error",
                    "transition": "3812349d-f003-4248-b26c-2b41f4fae9aa"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 179,
                    "y": 2258
                },
                "useDynamic": false
            }
        },
        {
            "id": "f01032b2-5c44-4b79-b123-7d0b506c49b6",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a73fe40a-3d52-4906-b322-f85cd0b16ecd"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 418,
                    "y": 981
                },
                "useDynamic": false
            }
        },
        {
            "id": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2373,
                    "y": 1178
                }
            }
        },
        {
            "id": "fbcafba8-21d1-43dd-a8f5-3a84d972e393",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "7462a2cf-eb33-48d9-878d-120593a9e4ce"
                },
                {
                    "condition": "Error",
                    "transition": "d0b8e96f-c440-48a5-a36a-39d7c19d3a1e"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2099,
                    "y": 659
                },
                "useDynamic": false
            }
        },
        {
            "id": "7462a2cf-eb33-48d9-878d-120593a9e4ce",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f01032b2-5c44-4b79-b123-7d0b506c49b6"
                },
                {
                    "condition": "Error",
                    "transition": "66eeb8cc-752c-4b24-9c23-c578c8b35fe3"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 176,
                    "y": 980
                },
                "useDynamic": false
            }
        },
        {
            "id": "680ac357-74e7-4a0b-b9ad-1e87d6e25386",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a9288cc0-3fa1-444a-a323-c067aba2cc5b"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 180,
                    "y": 2579
                },
                "useDynamic": false
            }
        },
        {
            "id": "a9288cc0-3fa1-444a-a323-c067aba2cc5b",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "b62650f3-6a98-440e-8d5a-9c8574a09bb7"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 422,
                    "y": 2580
                },
                "useDynamic": false
            }
        },
        {
            "id": "b62650f3-6a98-440e-8d5a-9c8574a09bb7",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "7d92f91d-dd47-4862-87db-036386b5e8cc"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 661,
                    "y": 2578
                },
                "useDynamic": false
            }
        },
        {
            "id": "7d92f91d-dd47-4862-87db-036386b5e8cc",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "9d6bd317-54e0-48b5-a178-48a2834e8151"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 902,
                    "y": 2579
                },
                "useDynamic": false
            }
        },
        {
            "id": "9d6bd317-54e0-48b5-a178-48a2834e8151",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "7ef34927-5d73-4e14-9302-5575a17d1782"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1140,
                    "y": 2578
                },
                "useDynamic": false
            }
        },
        {
            "id": "7ef34927-5d73-4e14-9302-5575a17d1782",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "3d42e8a0-6844-4ff0-bc08-11a20368508d"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1381,
                    "y": 2578
                },
                "useDynamic": false
            }
        },
        {
            "id": "3d42e8a0-6844-4ff0-bc08-11a20368508d",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "f498fea0-c334-4c9b-8981-ddd0e2d28e07"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1621,
                    "y": 2579
                },
                "useDynamic": false
            }
        },
        {
            "id": "f498fea0-c334-4c9b-8981-ddd0e2d28e07",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "2413a70d-7ad0-47c6-a4fb-a3ead5a9088c"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1861,
                    "y": 2578
                },
                "useDynamic": false
            }
        },
        {
            "id": "2413a70d-7ad0-47c6-a4fb-a3ead5a9088c",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "15f6ac88-be4e-46f7-a74d-08b12b3232eb"
                },
                {
                    "condition": "Error",
                    "transition": "96937323-d6b8-4100-999e-df54a23535b6"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2102,
                    "y": 2578
                },
                "useDynamic": false
            }
        },
        {
            "id": "96937323-d6b8-4100-999e-df54a23535b6",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2377,
                    "y": 2777
                }
            }
        },
        {
            "id": "15f6ac88-be4e-46f7-a74d-08b12b3232eb",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "fc773400-c49f-4b4c-a7dc-553c3a96a9b7"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 173,
                    "y": 2899
                },
                "useDynamic": false
            }
        },
        {
            "id": "fc773400-c49f-4b4c-a7dc-553c3a96a9b7",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "09d930ea-153e-4c16-a58c-c777ed5e115e"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 415,
                    "y": 2900
                },
                "useDynamic": false
            }
        },
        {
            "id": "09d930ea-153e-4c16-a58c-c777ed5e115e",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "484e3228-e3ee-4807-bfc0-605b229a65a8"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 654,
                    "y": 2898
                },
                "useDynamic": false
            }
        },
        {
            "id": "484e3228-e3ee-4807-bfc0-605b229a65a8",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "660b7499-f3b6-4df9-9fd1-14e29c072f53"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 895,
                    "y": 2899
                },
                "useDynamic": false
            }
        },
        {
            "id": "660b7499-f3b6-4df9-9fd1-14e29c072f53",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "118adba8-cf81-44f9-bdac-b39cd1531b4f"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1133,
                    "y": 2898
                },
                "useDynamic": false
            }
        },
        {
            "id": "118adba8-cf81-44f9-bdac-b39cd1531b4f",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "981d5ea4-307e-4a76-8d73-57386a789909"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1374,
                    "y": 2898
                },
                "useDynamic": false
            }
        },
        {
            "id": "981d5ea4-307e-4a76-8d73-57386a789909",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a77aa677-a051-4e0a-9da7-ee8912046de1"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1614,
                    "y": 2899
                },
                "useDynamic": false
            }
        },
        {
            "id": "a77aa677-a051-4e0a-9da7-ee8912046de1",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "a01613df-ce45-4df1-81cd-0476f13ac2b4"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 1854,
                    "y": 2898
                },
                "useDynamic": false
            }
        },
        {
            "id": "c19e7e46-72f6-4954-9abb-12c7cb2946ee",
            "type": "Disconnect",
            "branches": [],
            "parameters": [],
            "metadata": {
                "position": {
                    "x": 2370,
                    "y": 3097
                }
            }
        },
        {
            "id": "a01613df-ce45-4df1-81cd-0476f13ac2b4",
            "type": "PlayPrompt",
            "branches": [
                {
                    "condition": "Success",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                },
                {
                    "condition": "Error",
                    "transition": "c19e7e46-72f6-4954-9abb-12c7cb2946ee"
                }
            ],
            "parameters": [
                {
                    "name": "Text",
                    "value": "100",
                    "namespace": null
                },
                {
                    "name": "TextToSpeechType",
                    "value": "text"
                }
            ],
            "metadata": {
                "position": {
                    "x": 2095,
                    "y": 2898
                },
                "useDynamic": false
            }
        }
    ],
    "version": "1",
    "start": "908b553e-9be6-4db4-bc57-2edb4d2ed220",
    "metadata": {
        "entryPointPosition": {
            "x": 20,
            "y": 15
        },
        "snapToGrid": false,
        "name": "100",
        "description": null,
        "type": "contactFlow",
        "status": "published",
        "hash": "bc71ef51651c01945f0837a027c4f33135501c4f6a7a3080f6f998283903df66"
    },
    "type": "contactFlow"
}

エクスポートされたファイル(json)について

そもそものエクスポートされたファイル(json)は、Contact Flow 言語と同等(厳密にはエクスポートされたファイル(json)がContact Flow 言語とは書かれていない)と思っています。Contact Flow 言語のユーザーガイドだと アクション = ブロック である為、アクションを定義する type を検索するとブロック数が把握できそうです。実際、エクスポートファイル(json)には、"type" という文字列がObject毎にあるのでこれを検索対象とします。

ブロック数の計算

みなさんもよく利用している(と思われる)Visual Studio Codeを使って "type" という文字列を検索してみると、102件が一致しました。ブロック数と合ってない理由はエクスポートされたファイルの後尾に "type": "contactFlow" が含まれているのが理由です。ここは正規表現を使って以下の通り検索すれば解決です。ブロック数が100件であることが確認できます。

^            "type"

エクスポートしないでブロック数を計算

先にご案内した方法はエクスポートできた場合の操作です。エクスポートの要件はフローのブロック数が 100 未満である。 なので、ブロック数が100を超えるコンタクトフローはエクスポートしないで計算する必要があります。
AWS CLI(connect)のdescribe-contact-flowを使うとContact Flow 言語で出力できます。AWS CLIを実行できる且つjqがインストールを使えるCloudShellを使ってブロック数を計算します。まずはインスタンスIDとコンタクトIDを調べましょう。
Amazon ConnectのインスタンスIDは、aws connect list-instances"id" がインスタンスIDになります。

$ aws connect list-instances
{
    "InstanceSummaryList": [
        {
            "Id": "xxxxxxxx-9b06-4d1c-be80-c1a4ba615802",
            "Arn": "arn:aws:connect:ap-northeast-1:123456789012:instance/xxxxxxxx-9b06-4d1c-be80-c1a4ba615802",
            "IdentityManagementType": "CONNECT_MANAGED",
            "InstanceAlias": "demo1",
            "CreatedTime": "2022-09-06T00:37:31+00:00",
            "ServiceRole": "arn:aws:iam::123456789012:role/aws-service-role/connect.amazonaws.com/AWSServiceRoleForAmazonConnect_fDXVzL30l1L9Orbn5SVU",
            "InstanceStatus": "ACTIVE",
            "InboundCallsEnabled": true,
            "OutboundCallsEnabled": true
        },
        {
            "Id": "zzzzzzzz-af96-43fd-b038-3c07cdd7609c",
            "Arn": "arn:aws:connect:ap-northeast-1:123456789012:instance/zzzzzzzz-af96-43fd-b038-3c07cdd7609c",
            "IdentityManagementType": "CONNECT_MANAGED",
            "InstanceAlias": "demo2",
            "CreatedTime": "2020-12-07T03:19:54+00:00",
            "ServiceRole": "arn:aws:iam::123456789012:role/aws-service-role/connect.amazonaws.com/AWSServiceRoleForAmazonConnect_KKz5ixYpEfL4nTnFmZKB",
            "InstanceStatus": "ACTIVE",
            "InboundCallsEnabled": true,
            "OutboundCallsEnabled": true
        }
    ]
}

対象コンタクトフローのコンタクトIDは、 aws connect list-contact-flows --instance-id インスタンスID"id" がコンタクトIDになります。ただ、 list-contact-flows には --filters or --filter オプションがないので "Name" のコンタクトフロー名を確認し、同じ要素にある "id" を確認します。

$ aws connect list-contact-flows --instance-id インスタンスID 
{
    "ContactFlowSummaryList": [
        {
            "Id": "xxxxxxxx-ab38-49b9-804f-5a66f0405df0",
            "Arn": "arn:aws:connect:ap-northeast-1:123456789012:instance/xxxxxxxx-af96-43fd-b038-3c07cdd7609c/contact-flow/xxxxxxxx-ab38-49b9-804f-5a66f0405df0",
            "Name": "100",
            "ContactFlowType": "CONTACT_FLOW"
        },
        {
            "Id": "zzzzzzzz-e7c8-4d60-9d88-3808fceb2c11",
            "Arn": "arn:aws:connect:ap-northeast-1:123456789012:instance/xxxxxxxx-af96-43fd-b038-3c07cdd7609c/contact-flow/xxxxxxxx-e7c8-4d60-9d88-3808fceb2c11",
            "Name": "test flow",
            "ContactFlowType": "CONTACT_FLOW"
        }
    ]
}

調べたインスタンスID、コンタクトIDを引数に以下のコマンドでブロック数を計算します。

$ aws connect describe-contact-flow --instance-id インスタンスID --contact-flow-id コンタクトID --output yaml --query 'ContactFlow.Content' | sed -e "s/\\\//g" |sed -e "s/^\"//g" |jq '[.Metadata.ActionMetadata[]] | length'
101

jsonだけを渡す為に、yaml出力に含まれる 'ContactFlow.Content' だけ抽出します。抽出したjsonにはバックスラッシュが含まれている為、sedコマンドで置換します。整形したjsonをjqコマンドで計算します。実行結果には101と出力されました。ブロック数が101あることがわかります。

終わりに

コンタクトフロー内のブロック数を確認する方法でした。冒頭にも書きましたが、一つのコンタクトフローでブロック数が増える場合は、分割またはモジュール化していきましょう。

この記事をシェアする

facebook logohatena logotwitter logo

© Classmethod, Inc. All rights reserved.